package com.bawei.shopping2.adapter

import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class MyFragmentPagerAdapter(private var list: MutableList<Fragment>,private var behavior: Int,private var fragmentManager: FragmentManager):FragmentPagerAdapter(fragmentManager, behavior) {
    override fun getCount(): Int {
       return list.size
    }
    override fun getItem(position: Int): Fragment {
        return list[position]
    }
}